package com.mercury.ec.framework.air.core.client.impl.sunstn.dto.detr;

import com.mercury.ec.framework.air.core.client.impl.sunstn.jaxb.adapter.LocalEnglishDate2XmlAdapter;
import com.mercury.ec.framework.air.core.client.impl.sunstn.jaxb.adapter.TimeAddColon2XmlAdapter;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * SUNSTN DETR航段 Response DTO
 *
 * @author hesx
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class SunstnDetrRouteRespDTO {
    /**
     * 航段序号
     */
    @XmlAttribute(name = "index")
    private Integer index;

    /**
     * 出发城市
     */
    private SunstnDetrRouteCityAirportRespDTO CITYSTART;

    /**
     * 抵达城市
     */
    private SunstnDetrRouteCityAirportRespDTO CITYARRIVE;

    /**
     * 出发机场
     */
    private SunstnDetrRouteCityAirportRespDTO AIRPORTSTART;

    /**
     * 抵达机场
     */
    private SunstnDetrRouteCityAirportRespDTO AIRPORTARRIVE;

    /**
     * 承运人
     */
    private SunstnDetrRouteCarrierRespDTO CARRIER;

    /**
     * 出发航站楼
     */
    private String STARTT;

    /**
     * 抵达航站楼
     */
    private String ARRIVALT;

    /**
     * 航班号
     */
    private String FLIGHT;

    /**
     * 舱位
     */
    private String CLASS;

    /**
     * 折扣
     */
    private BigDecimal CLASSDISCOUNT;

    /**
     * 舱位折扣信息
     */
    private String FAREBASIS;

    /**
     * 航班日期
     */
    @XmlJavaTypeAdapter(LocalEnglishDate2XmlAdapter.class)
    private LocalDate DATE;

    /**
     * 航班时间
     */
    @XmlJavaTypeAdapter(TimeAddColon2XmlAdapter.class)
    private String TIME;

    /**
     * 行李额
     */
    private String ALLOW;

    /**
     * 航段状态
     */
    private String STATE;
}
